<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'menu-form',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'htmlOptions' => array(
        'class' => 'form-horizontal',
    ),
        ));
?>
<div class="row-fluid">
            <div class="span12">
                <!--PAGE CONTENT BEGINS-->

                <div class="control-group">
                    <label class="control-label">Priority</label>
                    <div class="controls">
                        <input type="text" placeholder="Display order" name="Menu[priority]" maxlength="100" size="60" />
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">Menu Name</label>
                    <div class="controls">
                        <input type="text" placeholder="Menu Name" name="Menu[name]" maxlength="100" size="60" />
                    </div>
                </div>

                <div class="controls">
                    <label>
                        <input name="Menu[is_static]" type="checkbox">
                        <span class="lbl"> Is static page</span>
                    </label>
                </div>

                <div class="control-group">
                    <label class="control-label">Status</label>
                    <div class="controls">
                        <?php echo $form->dropDownlist($model,'status',MyFunctionCustom::$status);?>
                        <span class="help-inline"><?php echo $form->error($model, 'status'); ?></span>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <!--PAGE CONTENT ENDS-->
        </div><!--/.row-fluid-->
    </div>
    <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                </div>
</div>        

<?php $this->endWidget(); ?>
<script src="<?php echo Yii::app()->theme->baseUrl; ?>/backend/tag/bootstrap-tagsinput.js"></script>
<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/backend/tag/bootstrap-tagsinput.css">
<style>
    .control-group span.required,.errorMessage {color:red;}
    .bootstrap-tagsinput {width:365px;margin-top:5px;}
    .ace-file-input {width: 380px;height: auto;}

    .div1, .div2, .div3{
        float: left;
    }
    .div1 select, .div2 select{
    margin-left: 20px;
    width: 50px;
    }
    
    .div2 label{
        width: 100px !important;
    }
    
    .div3 input{
        width: 200px !important;
    }
    
    .jason{
        display: none;
    }
    
    .add{
        clear: both;
        padding-top: 10px;
    }
    
    .div4 .controls a{
        height: 18px;
        vertical-align: middle;        
    }
    
    .div4 .btn{
        line-height: 0px;
    }
</style>